package apralms

class Parameter {
	String code
	String name
	String type
	String definition
	
	Boolean suit1
	Boolean suit2
	Boolean suit3
	Boolean suit4
	Boolean suit5
	Boolean suit6
	
	Boolean tag1
	Boolean tag2

    static constraints = {
		code blank:false, maxSize:10
		name blank:false, maxSize:50
		type blank:false, inList:["任务可靠性","基本可靠性","寿命指标"]
		
		suit1 nullable: true
		suit2 nullable: true
		suit3 nullable: true
		suit4 nullable: true
		suit5 nullable: true
		suit6 nullable: true
		
		tag1 nullable: true
		tag2 nullable: true
    }
	
	String toString(){
		"${name}"
	}
}
